import React, { FC, useState } from 'react'
import { Toast } from 'antd-mobile'
/**
 * custom_toast_error: error
 * custom_toast_warn: warn
 * custom_toast_normal: normal
 * */
interface itemParam {
  className: string
  text: string
  duration: number
}
export const customToast = (props: itemParam) => {
  return Toast.show({
    content: props.text,
    duration: props.duration,
    maskClassName: props.className,
  })
}
